package com.responsibilitychain.self;

public class Leader extends Inspector {
    public Leader(String name, String profession) {
        super(name, profession);
    }

    @Override
    public void handleBudget(Budget budget) {
        if(budget.getPrize()>10000){
            System.out.println(name+"处理了这个报销");
        } else {
            inspector.handleBudget(budget);
        }
    }
}
